package com.bean;

public class User {

    private String userid;//用户编号
    private String pet_name;//
    private String head_sculpture="user.jpg";//
    private String relname;//真实姓名
    private String postal_code;//邮政编码
    private String telephone;//用户联系方式
    private String password;//用户登录密码
    private String address;//用户邮寄地址
    private Integer sex=0;//用户性别,0表示男，1表示女

    public User() {
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPet_name() {
        return pet_name;
    }

    public void setPet_name(String pet_name) {
        this.pet_name = pet_name;
    }

    public String getHead_sculpture() {
        return head_sculpture;
    }

    public void setHead_sculpture(String head_sculpture) {
        this.head_sculpture = head_sculpture;
    }

    public String getRelname() {
        return relname;
    }

    public void setRelname(String relname) {
        this.relname = relname;
    }

    public String getPostal_code() {
        return postal_code;
    }

    public void setPostal_code(String postal_code) {
        this.postal_code = postal_code;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public User(String userid, String password) {
        this.userid = userid;
        this.password = password;
    }

    public User(String userid, String pet_name, String head_sculpture, String relname, String postal_code, String telephone, String password, String address, Integer sex) {
        this.userid = userid;
        this.pet_name = pet_name;
        if(head_sculpture!=null && !"".equals(head_sculpture)){
            this.head_sculpture = head_sculpture;
        }
        this.relname = relname;
        this.postal_code = postal_code;
        this.telephone = telephone;
        this.password = password;
        this.address = address;
        if(sex!=null && !"".equals(sex)){
            this.sex = sex;
        }

    }

    @Override
    public String toString() {
        return "User{" +
                "userid='" + userid + '\'' +
                ", pet_name='" + pet_name + '\'' +
                ", head_sculpture='" + head_sculpture + '\'' +
                ", relname='" + relname + '\'' +
                ", postal_code='" + postal_code + '\'' +
                ", telephone='" + telephone + '\'' +
                ", password='" + password + '\'' +
                ", address='" + address + '\'' +
                ", sex=" + sex +
                '}';
    }
}
